package model

import "duoke/tables"

type ReqSeparateAccountsSub struct {
	Id        int    `xorm:"not null pk autoincr INT(10)" json:"id" form:"id"`
	SubMchId  string `xorm:"" json:"sub_mch_id" form:"sub_mch_id"`
	Account   string `xorm:"" json:"account" form:"account"`
	State     int    `xorm:"" json:"state" form:"state"`
	Name      string `xorm:"" json:"name" form:"name"`
	Mobile    string `xorm:"" json:"mobile" form:"mobile"`
	FullName  string `xorm:"" json:"full_name" form:"full_name"`
	Type      string `xorm:"" json:"type" form:"type"`
	GroupId   int    `xorm:"" json:"group_id" form:"group_id"`
	Acid      int    `xorm:"" json:"acid" form:"acid"`
	Province  int    `xorm:"" json:"province" form:"province"`
	City      int    `xorm:"" json:"city" form:"city"`
	Area      int    `xorm:"" json:"area" form:"area"`
	Address   string `xorm:"" json:"address" form:"address"`
	ParentId  int    `xorm:"" json:"parent_id" form:"parent_id"`
	CreatedAt int    `xorm:"created" json:"created_at" form:"created_at"`
	UpdatedAt int    `xorm:"updated" json:"updated_at" form:"updated_at"`
	DeletedAt int    `xorm:"deleted" json:"deleted_at" form:"deleted_at"`
}

func (ReqSeparateAccountsSub) TableName() string {
	return "separate_accounts_sub"
}

type SeparateAccountSubList struct {
	tables.SeparateAccountsSub `xorm:"extends"`
	Group                      *tables.SeparateGroup `xorm:"extends" json:"group" form:"group"`
	GroupName                  string                `xorm:"" json:"group_name" form:"group_name"`
	ProvinceName               string                `json:"province_name" form:"province_name"`
	CityName                   string                `json:"city_name" form:"city_name"`
	AreaName                   string                `json:"area_name" form:"area_name"`
}

func (SeparateAccountSubList) TableName() string {
	return "separate_accounts_sub"
}

type ReqSubAccount struct {
	SubMchId              string
	ReceivierType         string
	ReceivierAccount      string
	ReceivierName         string
	ReceivierRelationType string
}
